$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/guid/hot',
            method: 'get',
            success: function (res) {
                console.log(res);
                var str = '';
                $.each(res, function (index, item) {
                    str += "<li>" +
                        "<img width='180px' src=" + item.img + ">" +
                        "<p class='p1'>" + item.text + "</p>" +

                        "<p class='p3'>" +
                        "<span><img src='../img/图表img/zan.png' >" + item.like + "</span>" +
                        "<span><img src='../img/图表img/reply.png' >" + item.like + "</span>" +
                        "</p >" +
                        "</li >"
                })
                $('.play-a').html(str)
            }
        })
    }
})